<include file="Public/head" />

<body>
    <div class="bg"></div>
    <div class="container">
        <div class="line bouncein">
            <div class="xs6 xm4 xs3-move xm4-move">
                <div style="height:150px;"></div>
                <div class="media media-y margin-big-bottom"></div>         
                <form action="?" method="post">
                    <div class="panel loginbox">
                        <div class="text-center margin-big padding-big-top"><h1>{:L("logintitle")}</h1></div>
                        <div class="panel-body" style="padding:30px; padding-bottom:10px; padding-top:10px;">
                            <div class="form-group">
                                <div class="field field-icon-right">
                                    <input type="text" class="input input-big" name="account_name" placeholder="{:L('user')}" data-validate="required:{:L('user_enter')}" />
                                    <span class="icon icon-user margin-small"></span>
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="field field-icon-right">
                                    <input type="password" class="input input-big" name="password" placeholder="{:L('password')}" data-validate="required:{:L('password_enter')}" />
                                    <span class="icon icon-key margin-small"></span>
                                </div>
                            </div>
                            <div class="form-group">
                               <div class="field">
                                    <input type="text" class="input input-big" name="code" placeholder="填写右侧的验证码" data-validate="required:请填写右侧的验证码" />
                                   <img src="{:U('login/verify',array())}" alt="" width="150" height="32" class="passcode" style="height:43px;cursor:pointer;" onclick="this.src=this.src+'?'">              
                                </div>
                            </div>
                        </div>
                        <div style="padding:20px 30px;"><input type="submit" class="button button-block bg-main text-big input-big" value="{:L('login')}"></div>
                        <div style="padding:0 30px 15px 0; text-align: right;"><a href="?l=zh-cn">{:L("chinese")}</a> | <a href="?l=en-us">{:L("english")}</a></div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript">
    $("#j_verify").keyup(function() {
        $.post("check_verify", {
            code : $("#j_verify").val()
            }, function(data) {
            if (data == true) {
                //验证码输入正确
            } else {
                //验证码输入错误
            }
        });
    });
</script>
</html>